package com.zhaotianhao.servicecart.api;

import com.zhaotianhao.servicecart.dto.SkuStockDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author Z-7
 * @Date 2022/4/28
 */
@Component
@FeignClient(name = "SERVICE-STOCK",path = "/skuStock")
public interface SkuStockApi {
    @PostMapping("/updateOccupyStock")
    public void updateOccupyStock(@RequestBody SkuStockDto skuStock);
}
